
package linuxbox.bean;

public class BaseIntKey {
	protected int m_iID;
	
	public BaseIntKey(int id) {
		m_iID = id;
	}
	
	public BaseIntKey() {
		m_iID = -1;
	}

	public void setID(int id) {
		m_iID = id;
	}
	
	public int getID() {
		return m_iID;
	}

	public String toString() {
		return Integer.toString(m_iID);
	}

	public boolean equals(Object obj) {
		BaseIntKey key = (BaseIntKey)obj;
		
		if (key.getID() == m_iID) 
			return true;
		else
			return false;
	}
}